Skip to content

Comments

Provide method to access GT and CT HW jet objects from l1t::PFJet#1088

Merged
epalencia merged 1 commit intocms-l1t-offline:phase2-l1t-integration-1252patch1from
thesps:p2-1252p1-scj2gt
May 12, 2023
Merged

Provide method to access GT and CT HW jet objects from l1t::PFJet#1088
epalencia merged 1 commit intocms-l1t-offline:phase2-l1t-integration-1252patch1from
thesps:p2-1252p1-scj2gt

Conversation

@thesps
Copy link

@thesps thesps commented Mar 31, 2023

As requested by GT emulator developers, this PR provides accessors to retrieve the hardware encoded jet object from the l1t::PFJet. Since emulator consumers of l1t::PFJet may be in either Correlator or Global Trigger systems, which have different coordinate scales, accessors to both types of objects are provided. Consumers have been updated to select the CT or GT object where appropriate.

The L1MHtProducer MHT emulator is also updated to set the integer pt and phi fields of the l1t::EtSum product such that GT can retrieve those fields for emulation.

@EmyrClement @gpetruc

Copy link

@gpetruc gpetruc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest some modifications for code cleanliness

@aloeliger aloeliger added Phase-2 Pertains to phase-2 development Data types Anything related to development of datatypes for L1 use labels Mar 31, 2023
@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

Attempts to compile this PR succeeded!

Info Value
return code 0
command cmsenv && scram b -j 8

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found no issues with the code checks!

Info Value
return code 0
command cmsenv && scram b -k -j 8 code-checks && scram b -k -j 8 code-checks

I found no issues with the headers!| Info | Value |
|:---------:|:------------:|
|return code|0|
|command|cmsenv && scram b -k -j 8 check-headers|

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found 1 files that did not meet formatting requirements:

  • DataFormats/L1TParticleFlow/interface/PFJet.h

Please run scram b code-format to auto-apply code formatting

@aloeliger
Copy link

@thesps Could you please fix the code formatting?

@aloeliger
Copy link

I think @gpetruc 's comments are probably correct (and better than what I could have added, thanks!)

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

This PR passes available unit tests!

Info Value
return code 0
command cmsenv && scram b runtests

@thesps thesps force-pushed the p2-1252p1-scj2gt branch from 1e7e912 to 25885d9 Compare March 31, 2023 15:13
@thesps
Copy link
Author

thesps commented Mar 31, 2023

Thanks for the feedback both, I've implemented the suggestions.

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

Attempts to compile this PR succeeded!

Info Value
return code 0
command cmsenv && scram b -j 8

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found no issues with the code checks!

Info Value
return code 0
command cmsenv && scram b -k -j 8 code-checks && scram b -k -j 8 code-checks

I found no issues with the headers!

Info Value
return code 0
command cmsenv && scram b -k -j 8 check-headers

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found no files with code format issues!

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

This PR passes available unit tests!

Info Value
return code 0
command cmsenv && scram b runtests

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

This PR does not change the EDM content of testing ntuples.

@gpetruc
Copy link

gpetruc commented Mar 31, 2023 via email

@aloeliger
Copy link

@epalencia I think I am okay with this. Anything from your side? If not @thesps would you please open a PR for this to central CMSSW? If possible we would like to keep these PRs synchronized.

@epalencia
Copy link

Nothing from my side. @thesps, please open the corresponding PR in master.

@thesps
Copy link
Author

thesps commented Apr 3, 2023

I'll open it. Are we keeping this open as well?

@aloeliger
Copy link

We'll merge this when the version to master is pulled in (to not desynchronize branches). If any additional commits are made there, we would appreciate cherry-picking them back here so we can provide a consistent recipe in 12_5_2 (for use on MC) as will be available eventually in central CMSSW.

@aloeliger
Copy link

aloeliger commented Apr 4, 2023

Just a memo to myself: This is delayed until the mega-correlator-PR started by Cecile and February and picked up by me gets merged, at which point this can go into central.

…date consumers to pick the appropriate HW object where needed

Address review comments

Fix HT emulator input collection and output encoding
@thesps thesps force-pushed the p2-1252p1-scj2gt branch from 25885d9 to d6e23fd Compare April 13, 2023 12:54
@thesps
Copy link
Author

thesps commented Apr 13, 2023

Updates:

  • HT emulation was consuming the wrong collection, that's updated
  • HT emulation was producing wrongly encoded outputs, they are fixed

@HaarigerHarald
Copy link

@thesps will this approach (using hwPT, hwPhi) also be implemented for the Correlator MET?

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

Attempts to compile this PR succeeded!

Info Value
return code 0
command cmsenv && scram b -j 8

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found no issues with the code checks!

Info Value
return code 0
command cmsenv && scram b -k -j 8 code-checks && scram b -k -j 8 code-checks

I found no issues with the headers!

Info Value
return code 0
command cmsenv && scram b -k -j 8 check-headers

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found no files with code format issues!

Info Value
return code 0
command cmsenv && scram b -k -j 8 code-format-all

@aloeliger
Copy link

@thesps The correlator PR that this is dependent upon should be merged now. Please open a PR containing this commit to central CMSSW. If any commits are requested in review there, we would appreciate them being cherry-picked back here. Because the correlator PR had to be changed w.r.t. this branch, merge issues may still exist, please let us know if there are any issues.

@epalencia
Copy link

Corresponding PR in master, cms-sw#41590, merged already.

@epalencia epalencia merged commit 62a07dd into cms-l1t-offline:phase2-l1t-integration-1252patch1 May 12, 2023
@epalencia
Copy link

Tagged as l1t-phase2-v61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Data types Anything related to development of datatypes for L1 use GT Necessary Phase-2 Pertains to phase-2 development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants